home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2000-01-31 | 1.9 KB | 85 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="3"
- "UIPATH"="Program Options\Games\Creatures 2"
- "NAME"="Creatures II Options"
- "VERSION"="1.26"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable Burble Speech"
- "TEXT 2"="Enable Smooth Scrolling"
- "TEXT 3"="Enable "NO CD-ROM NEEDED" cheat"
- "DESCRIPTION 1"="Some more options for Creatures II."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Thanks to CptSiskoX for his help!"
-
-
- sPath1="HKEY_CURRENT_USER\Software\CyberLife Technology\Creatures 2\1.0\"
-
- sValue1="Burble"
- sValue2="Smooth Scrolling"
- sValue3="No CD-ROM needed"
-
- sPath3a="HKLM\SOFTWARE\CyberLife Technology\World Switcher\World.sfc\1.0\"
- sPath3b="HKLM\SOFTWARE\CyberLife Technology\World Switcher\Default Info\1.0\"
-
- Sub Plugin_Initialize
- if RegPathExists(sPath1) then
- i=RegReadValue(sPath1 & sValue1)
- if i=1 then
- Call SetUIElement(1,True)
- end if
-
- i=RegReadValue(sPath1 & sValue2)
- if i=1 then
- Call SetUIElement(1,True)
- end if
-
-
- i=RegReadValue(sPath1 & sValue3)
- if i="j" then
- Call SetUIElement(1,True)
- end if
-
-
- else
- Disable
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- i=GetUIElement(1)
- if i=true then
- Call RegWriteValue(sPath1 & sValue1,1,2)
- else
- Call RegWriteValue(sPath1 & sValue1,0,2)
- end if
-
- i=GetUIElement(2)
- if i=true then
- Call RegWriteValue(sPath1 & sValue2,1,2)
- else
- Call RegWriteValue(sPath1 & sValue2,0,2)
- end if
-
-
- i=GetUIElement(3)
- if i=true then
- Call RegWriteValue(sPath1 & sValue3,"j",1)
- Call RegWriteValue(sPath3a & sValue3,"!5",1)
- Call RegWriteValue(sPath3b & sValue3,"!5",1)
- else
- Call RegWriteValue(sPath1 & sValue3,"n",1)
- end if
-
-
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-